package com.dwxt.mall.service.feign;

import com.dwxt.common.base.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cmsapplication")
public interface UserService {

    @RequestMapping("/cms/user/selectUserByKey")
    BaseResult selectUserByKey(@RequestParam String userId);

    @RequestMapping("/cms/user/updateIntegral")
    BaseResult updateIntegral(@RequestParam Integer integral, @RequestParam String relateId,
                              @RequestParam String category, @RequestParam String userId);

    @RequestMapping("/cms/integral/selectRuleByCategory")
    BaseResult selectRuleByCategory(@RequestParam String category);

    @PostMapping("/cms/userAction/hit")
    BaseResult hit(@RequestParam String info, @RequestParam String id);
}
